package com.litong.litongjiaoyu.entity;


import com.fasterxml.jackson.annotation.JsonFormat;

public class StudentLeave {
    private long id;
    private String phone;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private java.sql.Date startdate;

    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd")
    private java.sql.Date enddate;


    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm")
    private java.sql.Timestamp addTime;

    private String name;


    public long getId () {
        return id;
    }

    public void setId (long id) {
        this.id = id;
    }


    public String getPhone () {
        return phone;
    }

    public void setPhone (String phone) {
        this.phone = phone;
    }


    public java.sql.Date getStartdate () {
        return startdate;
    }

    public void setStartdate (java.sql.Date startdate) {
        this.startdate = startdate;
    }


    public java.sql.Date getEnddate () {
        return enddate;
    }

    public void setEnddate (java.sql.Date enddate) {
        this.enddate = enddate;
    }


    public String getStatus () {
        return status;
    }

    public void setStatus (String status) {
        this.status = status;
    }


    public java.sql.Timestamp getAddTime () {
        return addTime;
    }

    public void setAddTime (java.sql.Timestamp addTime) {
        this.addTime = addTime;
    }

    public String getName () {
        return name;
    }

    public void setName (String name) {
        this.name = name;
    }
    
    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (!(o instanceof StudentLeave)) {
            return false;
        }
        
        StudentLeave that = (StudentLeave) o;
        
        if (getId() != that.getId()) {
            return false;
        }
        if (getName() != null ? !getName().equals(that.getName()) : that.getName() != null) {
            return false;
        }
        if (getPhone() != null ? !getPhone().equals(that.getPhone()) : that.getPhone() != null) {
            return false;
        }
        if (getStartdate() != null ? !getStartdate().equals(that.getStartdate()) : that.getStartdate() != null) {
            return false;
        }
        if (getEnddate() != null ? !getEnddate().equals(that.getEnddate()) : that.getEnddate() != null) {
            return false;
        }
        if (getStatus() != null ? !getStatus().equals(that.getStatus()) : that.getStatus() != null) {
            return false;
        }
        if (getAddTime() != null ? !getAddTime().equals(that.getAddTime()) : that.getAddTime() != null) {
            return false;
        }
        return getName() != null ? getName().equals(that.getName()) : that.getName() == null;
    }
    
    @Override
    public int hashCode() {
        int result = getName() != null ? getName().hashCode() : 0;
        result = 31 * result + (int) (getId() ^ (getId() >>> 32));
        result = 31 * result + (getPhone() != null ? getPhone().hashCode() : 0);
        result = 31 * result + (getStartdate() != null ? getStartdate().hashCode() : 0);
        result = 31 * result + (getEnddate() != null ? getEnddate().hashCode() : 0);
        result = 31 * result + (getStatus() != null ? getStatus().hashCode() : 0);
        result = 31 * result + (getAddTime() != null ? getAddTime().hashCode() : 0);
        result = 31 * result + (getName() != null ? getName().hashCode() : 0);
        return result;
    }
    
    @Override
    public String toString () {
        return "StudentLeave{" +
                "id=" + id +
                ", phone='" + phone + '\'' +
                ", startdate=" + startdate +
                ", enddate=" + enddate +
                ", status='" + status + '\'' +
                ", addTime=" + addTime +
                '}';
    }
}
